class animal:
    def a(self):
        print('吃')


class dog(animal):
    def a(self):
        print('跑')

m = dog()
m.a()